package zelix.hack.hacks;

import zelix.hack.Hack;
import zelix.hack.HackCategory;
import net.minecraft.network.play.client.CPacketAnimation;
import zelix.utils.system.Connection;

public class NoSwing extends Hack {
	public NoSwing() {
		super("NoSwing", HackCategory.PLAYER);
	}

	@Override
	public boolean onPacket(Object packet, Connection.Side side) {
		if (side == Connection.Side.OUT) {
			if (packet instanceof CPacketAnimation) {
				return false;
			}
		}
		return true;
	}
}
